package com.jeepig.evaluation.domain;

import com.jeepig.common.annotation.Excel;
import com.jeepig.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 评价项对象 ev_evaluate
 *
 * @author guoxb
 * @date 2025-11-03
 */
public class Evaluate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 序号 */
    @Excel(name = "序号")
    private Long sn;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 评价项ID */
    private Long evaluateItemId;

    /** 评价人员ID */
    private Long memberId;

    List<EvaluateItem> evaluateItems;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public Long getSn() {
        return sn;
    }

    public void setSn(Long sn) {
        this.sn = sn;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public Long getEvaluateItemId() {
        return evaluateItemId;
    }

    public void setEvaluateItemId(Long evaluateItemId) {
        this.evaluateItemId = evaluateItemId;
    }

    public List<EvaluateItem> getEvaluateItems() {
        return evaluateItems;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public void setEvaluateItems(List<EvaluateItem> evaluateItems) {
        this.evaluateItems = evaluateItems;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
